<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title></title>
<%@ page
	import="universal.schema.action.*,java.util.*,universal.schema.model.*,com.opensymphony.xwork2.ActionContext"%>

<script type="text/javascript">
	$(function() {
		$("#tabs").tabs({
			selected : 4,
			disabled : [ 0, 1, 2, 3, 5]
		});
	});
</script>

</head>
<body>

	<div>
		<div id="tabs">
			<ul>
				<li><a href="#tabs-1"><font style="font-size: 20px;">1</font>&nbsp;<font
						style="font-size: 12px">Select Tables</font></a></li>
				<!-- 0 -->
				<li><a href="#tabs-2"><font style="font-size: 20px;">2</font>&nbsp;<font
						style="font-size: 12px">Select Columns</font></a></li>
				<!-- 1 -->
				<li><a href="#tabs-2.5"><font style="font-size: 20px;">3</font>&nbsp;<font
						style="font-size: 12px">Choice</font></a></li>
				<!-- 2 -->
				<li><a href="#tabs-3"><font style="font-size: 20px;">4</font>&nbsp;<font
						style="font-size: 12px">Select Filters</font></a></li>
				<!-- 3 -->
				<li><a href="#tabs-4"><font
						style="font-size: 20px; color: #FFAD00;">5</font>&nbsp;<font
						style="font-size: 12px">View Query</font></a></li>
				<!-- 4 -->
				<li><a href="#tabs-5"><font style="font-size: 20px;">6</font>&nbsp;<font
						style="font-size: 12px">Query Results</font></a></li>
				<!-- 5 -->
			</ul>

			<!-- ================ Query tab content================ -->
			<div id="tabs-4">

				<s:if test="hasActionErrors()">
					<div class="alert alert-error">
						<s:actionerror />
					</div>
				</s:if>
				
				<s:form method="post">
					<table class="table tabel-info">
						<tr>
							<td><textarea name="sqlQuery" rows="6" cols="500"
									readonly="readonly" draggable="true">
						<s:property value="#session.queryBefore" />
					</textarea></td>
						</tr>
						<tr>
							<td><s:submit cssClass="btn btn-primary"
									value="Validate and Proceed" align="left" action="validatQuery" /></td>
									<td><s:submit cssClass="btn btn-danger" value="Quit" align="right"
						action="RestartWork"> </s:submit></td>
					</table>
				</s:form>
			</div>
		</div>
	</div>
</body>
</html>